package com.heima.pojo.vo;


import com.heima.pojo.domain.EntryDDD;
import com.heima.pojo.domain.NodePageVo;
import com.heima.pojo.domain.VmType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class VmNodeVo extends EntryDDD {

    private String id;
    private Integer vmType;
    private String innerCode;
    private String nodeId;      //...
    private String vmStatus;
    private LocalDateTime lastSupplyTime;
    private String cityCode;
    private Integer areaId;
    private String createUserId;    //...
    private String createUserName;
    private String clientId;
    private Double longitudes;
    private Double latitude;
    private Integer ownerId;
    private String ownerName;
    private Integer businessId;
    private String regionId;



    private VmType type;

    private NodePageVo node;

    private RegionVo region;

    private Integer fault;

    private Map<String, Boolean> status = new HashMap<String, Boolean>() {{
        put("10002", true);
        put("10001", false);
        put("10003", true);
    }};
}
